package online.xybh.qa.service;

import com.github.pagehelper.PageInfo;
import online.xybh.qa.dto.QuestionInfoDTO;
import online.xybh.qa.model.Question;

public interface QuestionService {
   void createQuestion(String title, String content, Integer subject, String author);

   PageInfo<Question> queryChinese(Integer page, Integer size);

   PageInfo<Question> queryMath(Integer page, Integer size);

   PageInfo<Question> queryEnglish(Integer page, Integer size);

   PageInfo<Question> queryProgram(Integer page, Integer size);

   QuestionInfoDTO queryQuestionById(String id);

   Question queryQuestionByAllInfo(String title, String content, Integer subject, String author);
}
